package com.hw.frame.model;

import java.io.Serializable;

/**
 * 
 * @ClassName: Base
 * @Description: 所有的实体类的父类，包含了实体中的所有错误消息
 * @author hhx518
 * @date 2014-12-26 下午2:43:56
 * 
 */
public abstract class Base implements Serializable {

	private Integer error;// 0 正确，1 错误
	private String message; // 消息
	private String content;
	private String errorMessage;

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Integer getError() {
		return error;
	}

	public void setError(Integer error) {
		this.error = error;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean hasError() {
		if (error == null) {
			return true;
		}
		if (error.intValue() ==0) {
			return false;
		}

		return true;
	}
}
